package cn.hy.preparelesson.oa.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 
 */
public class ScLessontype implements Serializable {
    private String lessontypeId;

    /**
     * 备课类别名称
     */
    private String lessonname;

    private Date creattime;

    private static final long serialVersionUID = 1L;

    public String getLessontypeId() {
        return lessontypeId;
    }

    public void setLessontypeId(String lessontypeId) {
        this.lessontypeId = lessontypeId;
    }

    public String getLessonname() {
        return lessonname;
    }

    public void setLessonname(String lessonname) {
        this.lessonname = lessonname;
    }

    public Date getCreattime() {
        return creattime;
    }

    public void setCreattime(Date creattime) {
        this.creattime = creattime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ScLessontype other = (ScLessontype) that;
        return (this.getLessontypeId() == null ? other.getLessontypeId() == null : this.getLessontypeId().equals(other.getLessontypeId()))
            && (this.getLessonname() == null ? other.getLessonname() == null : this.getLessonname().equals(other.getLessonname()))
            && (this.getCreattime() == null ? other.getCreattime() == null : this.getCreattime().equals(other.getCreattime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getLessontypeId() == null) ? 0 : getLessontypeId().hashCode());
        result = prime * result + ((getLessonname() == null) ? 0 : getLessonname().hashCode());
        result = prime * result + ((getCreattime() == null) ? 0 : getCreattime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", lessontypeId=").append(lessontypeId);
        sb.append(", lessonname=").append(lessonname);
        sb.append(", creattime=").append(creattime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}